
fun main(args:Array<String>){
	//vars(1,2,3,4,5)
	//val sumLambda:(Int,Int)->Int={x,y->x+y}
	//print(sumLambda(2,3))
	val name = "LEO"
	print("Hello ${name}\n")
	val str = "${name.replace("E","O")}"
	print(str)
	
	var age:String?="23"//?代表可以为空
	val ages = age?.toInt()//强制取转换
	val ages2 = age?.toInt() ? : -1
	
}

fun vars(vararg args:Int){
	for(arg in args){
		print(arg)
		print("\n")
	}
}